/* 页面容器 */
.page {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 32rpx;
}

.task-type {
  display: flex;
  justify-content: center;    /* 水平居中 */
  align-items: center;        /* 垂直居中 */
  font-size: 32rpx;           /* 字体略大一点，看起来像卡片标题 */
  font-weight: 600;           /* 加粗更有层次感 */
  color: rgb(124, 124, 124);                /* 深色文字 */
  background-color: #e4e4e4;  /* 可选：浅灰背景 */
  padding: 20rpx 0;           /* 上下留一些空间 */
  border-radius: 12rpx 12rpx 0 0; /* 卡片顶部圆角，可选 */
}

.link-wrapper {
  display: flex;
  align-items: center;
  gap: 10rpx;
  padding: 20rpx;
}

.link-input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 10rpx 20rpx;
  border-radius: 8rpx;
  background-color: #f7f7f7;
  color: #333;
  font-size: 28rpx;
}

.task-detail-container {
  padding: 32rpx 24rpx;
}

/* 状态卡片 */
.status-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);

  .status-header {
    display: flex;
    align-items: center;
    margin-bottom: 24rpx;

    .status-icon {
      width: 64rpx;
      height: 64rpx;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 24rpx;

      &.running {
        background-color: #e3f2fd;
        color: #1890ff;
      }

      &.completed {
        background-color: #f6ffed;
        color: #52c41a;
      }

      &.failed {
        background-color: #fff2f0;
        color: #ff4d4f;
      }
    }

    .status-info {
      flex: 1;

      .status-text {
        font-size: 36rpx;
        font-weight: bold;
        margin-bottom: 8rpx;
        
        text {
          &:first-child {
            color: #1890ff;
          }
        }
      }

      .task-id {
        font-size: 24rpx;
        color: #999;
      }
    }
  }

  .status-time {
    display: flex;
    flex-direction: column;
    gap: 8rpx;
    
    text {
      font-size: 24rpx;
      color: #666;
    }
  }
}

/* 基本信息卡片（运行中任务） */
.basic-info-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);

  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 24rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .info-list {
    .info-item {
      display: flex;
      margin-bottom: 20rpx;
      
      &:last-child {
        margin-bottom: 0;
      }

      .info-label {
        width: 140rpx;
        font-size: 28rpx;
        color: #666;
        flex-shrink: 0;
      }

      .info-value {
        flex: 1;
        font-size: 28rpx;
        color: #333;
        line-height: 1.4;
      }
    }
  }

  .progress-tip {
    display: flex;
    align-items: center;
    background: #f0f9ff;
    padding: 20rpx;
    border-radius: 12rpx;
    margin-top: 24rpx;
    
    t-icon {
      color: #1890ff;
      margin-right: 12rpx;
    }
    
    text {
      font-size: 26rpx;
      color: #1890ff;
      line-height: 1.4;
    }
  }
}

/* 结果卡片 */
.result-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);

  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 24rpx;
  }

  .video-container {
    position: relative;
    border-radius: 12rpx;
    overflow: hidden;
    margin-bottom: 20rpx;
    cursor: pointer;

    .result-video {
      width: 100%;
      height: 400rpx;
      background-color: #000;
    }

    .fullscreen-tip {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16rpx;
      background: rgba(0, 0, 0, 0.05);
      
      t-icon {
        color: #666;
        margin-right: 8rpx;
      }
      
      text {
        font-size: 24rpx;
        color: #666;
      }
    }
  }

  .result-actions {
    display: flex;
    gap: 16rpx;
    
    t-button {
      flex: 1;
    }
  }
}

/* 错误信息卡片 */
.error-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);

  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 24rpx;
  }

  .error-content {
    display: flex;
    align-items: flex-start;
    background: #fff2f0;
    padding: 24rpx;
    border-radius: 12rpx;
    border-left: 4rpx solid #ff4d4f;
    
    t-icon {
      color: #ff4d4f;
      margin-right: 16rpx;
      margin-top: 4rpx;
    }
    
    .error-message {
      flex: 1;
      font-size: 28rpx;
      color: #ff4d4f;
      line-height: 1.4;
    }
  }
}

/* 参数卡片 */
.params-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);

  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 24rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    
    t-icon {
      color: #999;
      transition: transform 0.3s ease;
    }
  }

  .param-list {
    .param-item {
      display: flex;
      margin-bottom: 20rpx;
      
      &:last-child {
        margin-bottom: 0;
      }

      .param-label {
        width: 140rpx;
        font-size: 28rpx;
        color: #666;
        background-color: rgba(234, 239, 241, 0.801);
        flex-shrink: 0;
        text-align: center; /* 可选：让文字在自己内部水平居中 */

      }

      .param-value {
        flex: 1;
        font-size: 28rpx;
        color: #333;
        line-height: 1.4;
        padding-left: 20px;
      }

      .param-images {
        display: flex;
        gap: 16rpx;
        flex-wrap: wrap;

        .param-image {
          width: 120rpx;
          height: 120rpx;
          border-radius: 8rpx;
          border: 2rpx solid #f0f0f0;
        }
      }
    }
  }
}

/* 操作按钮 */
.actions {
  display: flex;
  flex-direction: column;
  gap: 16rpx;
  margin-top: 32rpx;

  t-button {
    width: 100%;
  }
}

/* 加载容器 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400rpx;
}

/* 悬浮返回按钮 */
.float-back-btn {
  position: fixed;
  top: 44px;
  left: 16px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: white;
}

/* 简化动画效果 - 提升性能 */
.status-card,
.result-card,
.params-card,
.actions {
  opacity: 1;
  transform: none;
  /* 移除复杂动画以提升性能 */
}

/* 响应式设计 */
@media (max-width: 400px) {
  .page {
    padding: 16rpx;
  }
  
  .task-detail-container {
    .status-card,
    .result-card,
    .params-card {
      padding: 24rpx 16rpx;
      margin-bottom: 16rpx;
    }
  }
}

// 视频格式提示样式
.video-format-tip {
  display: flex;
  align-items: center;
  padding: 16rpx 24rpx;
  margin-bottom: 16rpx;
  background-color: #f7f8fa;
  border-radius: 8rpx;
  font-size: 24rpx;
  color: #666;
  
  .tip-text {
    margin-left: 8rpx;
    line-height: 1.5;
  }
} 